<?php include $this->tpl('public:adminHeader.php') ?>

	<link rel="stylesheet" href="{__STATIC_URL__}/public/pay/css/??orderQuery.css,componentTable.css,formLayout.css">

<?php include $this->tpl('public:adminPub.php') ?>
	
	<div class="cus-container">
		<form id="seartpad" method="post">
			<label for="trade-time">交易时间：</label>
			<input type="text" placeholder="请输入交易开始时间" name="starttime" class="startTime">
			<label for="to">到</label>
			<input type="text" placeholder="请输入结束时间" name="endtime" class="endTime">
			<button id="btnSearch" class="cus-btn cus-btn-md cus-btn-green"><i class="fa fa-search"></i> 查询</button>
			<button data-click="confirm" data-info="nihao">nihao</button>
			<input type="hidden" name="page" id="pageNum" value='1'>
		</form>
	</div>

	<!-- summary -->
	<div class="component-sum cus-mg-b-30" id="summary" data-url="Template?tpl=textingSummary.php">
	
	</div>
	<!-- summary -->

	<!-- table -->
	<div class="component-table" id="pageTable" data-url="/Template?tpl=textingTable.php">
	</div>

	<!-- 弹出框 -->
	<script type="text/javascript" src="{__STATIC_URL__}/public/lib/jquery.min.js"></script>
	<link rel="stylesheet" href="{__STATIC_URL__}/public/lib/jqueryplug/artDialog/ui-dialog.css">
	<script type="text/javascript" src="{__STATIC_URL__}/public/lib/jqueryplug/artDialog/dialog-min.js"></script>
	<script type="text/javascript" src="{__STATIC_URL__}/public/pay/js/common.js"></script>
	<!-- 弹出框 -->

	<!-- 时间 -->
	<script type="text/javascript" src="{__STATIC_URL__}/public/lib/jqueryplug/dateTimePicket/jquery.datetimepicker.js"></script>
	<script type="text/javascript" src="{__STATIC_URL__}/public/pay/js/dateTime.js"></script>
	<!-- 时间 -->

	<!-- async-loading -->
	<script type="text/javascript" src="{__STATIC_URL__}/public/pay/js/asyncLoading.js"></script>
	<!-- async-loading -->


	<!-- table -->
	<script type="text/javascript">
		var $summary=$('#summary');
		var url=$summary.data('url');
		var containerHtml1=new AjaxGetHtml($summary,url);

		var $pageTable=$('#pageTable');
		url=$pageTable.data('url');
		var containerHtml2=new AjaxGetHtml($pageTable,url);

		$('#btnSearch').click(function(e){
			e.preventDefault();
			$('#pageNum').val('1');
			var stringQuery=$('#seartpad').serialize();//form 序列化  详情：http://www.w3school.com.cn/jquery/ajax_serialize.asp
			$('#summary').text(stringQuery)
			containerHtml1.get(stringQuery);
			containerHtml2.get(stringQuery);
		});
	</script>
</body>
</html>
<?php include $this->tpl('public:adminFooter.php') ?>
